class Animal:
    def __init__(self,name,age):
        self.name=name
        self.age=age

    def eat(self):
        print(f'{self.name}正在吃东西')

    def drink(self):
        print(f'{self.name}正在喝水')

class Dog(Animal):
    def guard(self):
        print('大黄正在看门')

dog1 =Dog('大黄','5')
dog1.eat()
dog1.drink()
dog1.guard()



